#include "stm32f10x.h"                  // Device header
#include <stdio.h>
double add(double a, double b)
{
	return a + b;
}

double sub(double a, double b)
{
	return a - b;
}

double mul(double a, double b)
{
	return a * b;
}

double div(double a, double b)
{
	/*if (b == 0)
	{
		printf("error");
		return -1;
	}*/
	return a / b;
}

void clear_input_buffer()
{
	while (getchar() != '\n');
}
